﻿<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="ISUX">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <title>活动查询</title>
    <link rel="stylesheet" href="/ViewMob/css/wxui.css">
    <link rel="stylesheet" href="/ViewMob/css/group.css">
    <link href="//at.alicdn.com/t/font_qqztt1cpq09kke29.css" rel="stylesheet" />
    <link href="/ViewMob/js/layer/need/layer.css" rel="stylesheet" />
    <script src="/ViewMob/js/layer/layer.m.js"></script>
    <style>
        .circle-inner-center {
            color: cornflowerblue;
            line-height: 75px;
            font-size: 20px;
        }
    </style>
    <style>
        .list-chart {
            background: #fff;
            margin-bottom: 5px;
            overflow: hidden;
        }

            .list-chart dd {
                float: left;
                width: 25%;
                padding: 5px 0;
                text-align: center;
                font-size: 13px;
            }

        dt, dd, dl {
            margin: 0 !important;
        }

        .sel {
            background: #f5eeee;
        }

        .link {
            color: blue;
        }
    </style>
</head>
<body ms-controller="TATJ">


    <section class="mod-action" style="text-align: center; color: whitesmoke; font-weight: bolder;" id="showTA">
        {{tian}}-年度提案<i class="iconfont icon-xiala1" style="font-size: 10px; margin-left: 5px;"></i>
    </section>

    <section>
        <div class="weui-panel">
            <div class="weui-panel__hd">共计找到{{tiandata.size()}}条提案</div>
            <div class="weui-panel__bd">
                <div class="weui-media-box weui-media-box_text" ms-repeat-item="tiandata" ms-click="gotian(item)">
                    <h4 class="weui-media-box__title">{{item.tanr}}</h4>
                    <p class="weui-media-box__desc">来源:{{item.jsxbmc}}</p>
                    <ul class="weui-media-box__info">
                        <li class="weui-media-box__info__meta">编号:{{item.bh}}</li>
                        <li class="weui-media-box__info__meta">状态:{{item.jaqk}}</li>
                        <li class="weui-media-box__info__meta weui-media-box__info__meta_extra">评价:{{item.japj}}</li>
                    </ul>
                </div>
           
            </div>
        </div>
    </section>


    <script src="/ViewMob/js/zepto.min.js"></script>
    <script src="/ViewMob/js/weui.min.js"></script>
    <script src="/ViewMob/js/echarts.min.js"></script>
    <script src="/ViewMob/js/avalon.mobile.js"></script>
    <script src="/ViewMob/js/ComFunJS.js"></script>
    <script>
        var model = avalon.define({
            $id: "TATJ",
            tian: "",
            tiandata:[],
            initdata: function (nd) {
                $.getJSON("/API/VIEWAPI.ashx?ACTION=GH_GHTACX", { P1: nd }, function (result) {
                    model.tiandata = result.Result;
                })
            },
            gotian: function (item) {
                location.href = "UI_TAINFO.html?bh=" + item.bh;
            }
        })
        avalon.ready(function () {
            $.getJSON("/API/VIEWAPI.ashx?ACTION=GH_GHTAND", {}, function (result) {
                var tadata = [];
                for (var i = 0; i < result.Result.length; i++) {
                    tadata.push({
                        label: result.Result[i].nf,
                        value: result.Result[i].nd
                    });
                }
                model.tian = tadata[tadata.length-1].label;
                $('#showTA').on('click', function () {
                    weui.picker(tadata
                    , {
                        defaultValue: [tadata[tadata.length-1].value],
                        onChange: function (result) {
                        },
                        onConfirm: function (result) {
                            model.tian = result[0];
                            model.tiandata.clear();
                            model.initdata(result[0]);

                        }
                    });
                })
                model.initdata(tadata[tadata.length-1].value);

            })
        })
    </script>
    <script type="text/javascript" charset="utf-8">
        //自动轮播



    </script>
</body>

</html>
